﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using WebAPI.Service1.BLL;
using WebAPI.Service1.Model;

namespace WebApplication1.Controllers
{
    public class TestController : Controller
    {
        // GET: Test
        public ActionResult Index()
        {
            return View();
        }

        public string ApiTest(string jsonData)
        {
            RequestEntity guid = Newtonsoft.Json.JsonConvert.DeserializeObject<RequestEntity>(jsonData);
            string returnMsg = "";
            TestBLL bLL = new TestBLL();
            returnMsg += bLL.Test(guid);
            return returnMsg;
        }
    }
}